import '@testing-library/jest-dom'
import { render, screen } from "@app-nextmesh-env/nextmesh/utils"

import Label from "./Label"

test('Label', () => {
  const { unmount } = render(<Label label="test" />)
  expect(screen.getByText(/test/i)).toBeInTheDocument()
  unmount()
  // 公式渲染
  const { container } = render(<Label label="$c_0$" />)
  expect(container.getElementsByClassName('__Latex__').length).toBe(1)
})
